package com.tul.exercise.base.subjectobserver;

import java.io.Serializable;

/**
 * @author tul on 2018/7/22.
 */
public class DataInfo implements Serializable{
    /**
     * 温度
     */
    private double temperature;

    /**
     * 湿度
     */
    private double humidity;

    /**
     * 气压
     */
    private double pressure;

    public DataInfo(double temperature, double humidity, double pressure) {
        this.temperature = temperature;
        this.humidity = humidity;
        this.pressure = pressure;

    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public double getHumidity() {
        return humidity;
    }

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }

    public double getPressure() {
        return pressure;
    }

    public void setPressure(double pressure) {
        this.pressure = pressure;
    }

    public String toString () {
        return "温度：" + temperature + "°" + ", 湿度：" + humidity + ",气压：" + pressure;
    }
}
